#pragma once

#include <vector>
#include <map>
#include <string>
#include <set>
#include <sstream>

class CGlobalUnits
{
public:
	CGlobalUnits(void);
	~CGlobalUnits(void);
public:
	int		m_nArrayIndex;
	int		m_nObjectIndex;

	std::map<SStringW, std::vector<SStringW>> m_mapTitleDatas;
public:
	std::string GenerateUUID();
	SStringW GetFontFormat(SStringW& sstrFont, int& nStyle, bool& bUnder, bool& bStrike, int& nFontSize);

	void HexClr2RGBValue(SStringW& sstrValue, int& nR, int& nG, int& nB);
	void Des2Base(int nDes, int nBase, std::vector<int>& vecResult);
public:
	static CGlobalUnits* GetInstance();
};

#define GlobalUnits		CGlobalUnits::GetInstance()